/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package polymorphism;

/**
 *
 * @author Iskandar Sarkawi
 */
public class Printer {


    public void show(Spider sp){
        System.out.println(sp.getLegs());
    }

    public void show(Cow cw){
        System.out.println(cw.getLegs());
    }

    //What if there are more types of animals that will be created? So, we keep on adding a new show() method?
    //THis is not the correct way of doing it.
    //Refer to Example2_v2 for a better solution

}
